//
//  Feed.m
//  Test
//
//  Created by Jodynek on 4/11/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "ParsedFeed.h"

@implementation ParsedFeed
@synthesize read, summary, pubDate, title, link, id, content, source, feedRect;


-(BOOL) isOld
{
  NSTimeInterval fourdays = 24 * 60 * 60*4;
  NSDate *today = [NSDate date];
  NSDate* fourDaysBeforeNow =   [today addTimeInterval:-fourdays];
  return [self.pubDate compare:fourDaysBeforeNow] == NSOrderedAscending;      
}

@end
